package com.example.zhidao.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@Component
public class UserVo {
    private String id;
    private String username;
    private String sex;
    private String img;
    private String email;
    private int type;
    private int concern;//关注数
    private int fan;
    private int collection;
    private int publish;
    @DateTimeFormat(pattern = "yyyy-dd HH:mm:ss") // 从前端接收数据时，需要进行的转换
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") // 返回到前端时，需要进行的转换
    private Date createtime;

//此处用于返回搜索用户的信息vo 增强系统安全性
}
